package com.crimsec.utils.dinfo;

import java.io.IOException;

/**
 * @author moroz
 */
public class RendererFactory {

    public static IRenderer newRendererInstance() throws IOException {
        try {
            Utils utls = new Utils();
            String clz = utls.getValue(IRenderer.class.getName());
            return (IRenderer) Class.forName(clz).newInstance();
        } catch (Exception e) {
            throw new IOException("could not instantinate renderer class", e);
        }
    }
}
